package com.bilibili.service;

import java.util.List;

import com.bilibili.dto.CommentInfo;
import com.bilibili.entity.Comment;
import com.bilibili.entity.Page;

public interface CommentService {
	public int selectCountByVId(int videoId);

	public List<Comment> selectAllByVId(int videoId);

	public List<Comment> selectAllByUpId(int upId);

	boolean deleteComment(int commentId);

	/**
	 * 查询所有评论总数
	 * 
	 * @return 评论总数
	 */
	int selectAllCommentNum();

	int addComment(Comment comment);

	List<Comment> getCommentsByVideoId(int videoId, int offset, int limit);

	List<Comment> getRepliesByParentId(int parentId);

	Comment getCommentById(int commentId);

	boolean likeComment(int commentId);
	
	Page<CommentInfo> selectAllCommentInfoB(CommentInfo ci,int pageNum,int pageSize);
	
	boolean deleteCommentInfoByCId(Comment c);
}
